<template>
  <div class="box">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item to="/login" replace>首页</el-breadcrumb-item>
      <el-breadcrumb-item>平台运营</el-breadcrumb-item>
      <el-breadcrumb-item to="/login/operation/coupon" replace>优惠券运营</el-breadcrumb-item>
      <el-breadcrumb-item>优惠券商户信息</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="tableBox">
      <div class="tableTitle">优惠券商户信息</div>
      <div class="searchBox">
        <el-form :model="searchObject" size="mini" inline>
          <div class="block">
            <el-form-item label="名字">
              <el-input v-model="searchObject.shopName"></el-input>
            </el-form-item>
            <el-form-item label="手机号">
              <el-input v-model="searchObject.shopName"></el-input>
            </el-form-item>
            <el-form-item label="开始时间">
              <el-date-picker v-model="searchObject.time" type="date" placeholder="请选择日期时间"></el-date-picker>
            </el-form-item>
            <el-form-item label="结束时间">
              <el-date-picker v-model="searchObject.time" type="date" placeholder="请选择日期时间"></el-date-picker>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" @click="search"></el-button>
            </el-form-item>
          </div>
        </el-form>
      </div>
      <el-table :data="tableData">
        <el-table-column prop="" label="商户编号" align="center"></el-table-column>
        <el-table-column prop="" label="商户名称" align="center"></el-table-column>
        <el-table-column prop="" label="券类别" align="center"></el-table-column>
        <el-table-column prop="" label="券状态" align="center"></el-table-column>
        <el-table-column prop="" label="券内容" align="center"></el-table-column>
        <el-table-column prop="" label="发布时间" align="center"></el-table-column>
        <el-table-column prop="" label="有效时间" align="center"></el-table-column>
        <el-table-column prop="" label="发布数量" align="center"></el-table-column>
        <el-table-column prop="" label="待领取数量" align="center"></el-table-column>
        <el-table-column prop="" label="已领取数量" align="center"></el-table-column>
        <el-table-column prop="" label="已使用数量" align="center"></el-table-column>
        <el-table-column prop="" label="活动状态" align="center"></el-table-column>
        <el-table-column label="优惠券信息" align="center">
          <template slot-scope="data">
            <router-link
              :to="{path: 'couponShopDetails', query:{userId: data.row.userId, tDiscountId: data.row.tDiscountId}}"
              replace>查看</router-link>
          </template>
        </el-table-column>
      </el-table>
      <pagination :maxTotal="maxTotal" @handleSize="handleSizeChange" @handleCurrent="handleCurrentChange"></pagination>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import pagination from 'components/pagination'

  export default {
    data () {
      return {
        maxTotal: 10,
        searchObject: {},
        tableData: [{}]
      }
    },
    created () {
    },
    methods: {
      search () {
      },
      handleSizeChange (val) {
      },
      handleCurrentChange (val) {
      }
    },
    components: {
      pagination
    }
  }
</script>

<style lang="less" ref="stylesheet/less" scoped>

</style>
